package com.control.qct.businesssteward.adapter;

import android.support.annotation.Nullable;

import com.control.qct.businesssteward.R;
import com.control.qct.businesssteward.model.TakeDeliveryOrderDetailSureModel;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

/**
 * Created by Administrator on 2018/1/17 0017.
 */

public class TakeDeliveryOrderDetailSureAdapter extends BaseQuickAdapter<TakeDeliveryOrderDetailSureModel,
        BaseViewHolder> {
    public TakeDeliveryOrderDetailSureAdapter(@Nullable List<TakeDeliveryOrderDetailSureModel> data) {
        super(R.layout.rv_take_delivery_order_detail_sure_item, data);
    }

    @Override
    protected void convert(BaseViewHolder holder, TakeDeliveryOrderDetailSureModel item) {
        holder.setText(R.id.tv_name, item.getName()).setText(R.id.tv_goods_num, item.getGoodsNum() + "")
                .setText(R.id.tv_complimentary_num, item.getComplimentaryNum() + "").setText(R.id.tv_time, item
                .getTime());
    }
}
